home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Tools / MPW / lgrind 1.0.1 / lgrind.make < prev    next >
Encoding:
Text File  |  1993-05-08  |  3.2 KB  |  80 lines  |  [TEXT/MPS ]

  1. # ----------------------------------------------------------------------
  2. # LGRIND makefile for the Macintosh MPW Shell 3.2.
  3. # ----------------------------------------------------------------------
  4. #   Target:     lgrind
  5. #   Sources:    lgrind.c  regexp.c  vgrindefs.c  GUSI.o
  6. #   Created:    Friday, April 30, 1993
  7. # ----------------------------------------------------------------------
  8. # This software was ported to the Macintosh by:
  9. #
  10. # Fred Walsteijn   (E-mail:  walsteyn@fys.ruu.nl)
  11. # Institute for Marine and Atmospheric Research
  12. # Utrecht University
  13. # Princetonplein 5
  14. # 3584 CC Utrecht
  15. # The Netherlands
  16. # ----------------------------------------------------------------------
  17. # The Unix-based code needed only minor changes because the Unix library
  18. # functions from GUSI.o are used.
  19. # GUSI has been made available by Matthias Neeracher (neeri@iis.ethz.ch).
  20. # ----------------------------------------------------------------------
  21. # To recompile this tool, do the following:
  22. #
  23. # 1. Make sure that the variable {MPWversion} has been exported by the Shell.
  24. # 2. Substitute the actual version number of the GUSI library you are using
  25. #    in the following line:
  26. GUSIversion = 1.1.1 
  27. # 3. Change the DEFSFILE definition below to your liking.  A sensible
  28. #    definition would be:   -d DEFSFILE=∂"{MPW}Tools:lgrindefs∂"
  29. #    Of course you should then put the lgrindefs file in the {MPW}Tools folder.
  30. #    If you're using the def as given below, lgrind expects this file in the
  31. #    current directory if you're not using its -d option.
  32. # 4. After the build of lgrind, use ResEdit to create a new resource in it
  33. #    with type GU∑I.  The Rez command below has written a template for this
  34. #    type in the resource fork of the tool lgrind.
  35. #    Set the autoSpin value in the new resource to one of 2, 4, 8, 16, or 32;
  36. #    and also set the type and creator of the output file.
  37. #    Change the ID of the new resource to 10240.
  38.  
  39. VERSION  = 1.0.1
  40. OBJECTS  = lgrind.c.o regexp.c.o vgrindefs.c.o
  41. DEFINES     = -d MPW  -d DEFSFILE=∂"lgrindefs∂"
  42. COPTIONS = -model far -mc68020 -mc68881 -elems881 -sym off -mbg off
  43. LOPTIONS = -model far -d -w -c 'MPS ' -t MPST -mf -ad 4 -ac 4 -sym off
  44.  
  45. lgrind        ƒƒ    "{RIncludes}"GUSI.r
  46.     Rez "{RIncludes}"GUSI.r -o lgrind -append    # -d GUSI_PREF_VERSION=∂'0110∂'
  47.  
  48. lgrind        ƒƒ    {OBJECTS}
  49.     Link {LOPTIONS} ∂
  50.          {OBJECTS} ∂
  51.         "{CLibraries}"GUSI.o ∂
  52.         "{Libraries}"Stubs.o ∂
  53.         "{Libraries}"ToolLibs.o ∂
  54.         "{CLibraries}"Clib881.o ∂
  55.         "{CLibraries}"CSANELib881.o ∂
  56.         "{CLibraries}"Math881.o ∂
  57.         "{CLibraries}"Complex881.o ∂
  58.         "{CLibraries}"StdClib.o ∂
  59.         "{Libraries}"Interface.o ∂
  60.         "{Libraries}"Runtime.o ∂
  61.         -o lgrind
  62.  
  63. lgrind.c.o        ƒ    lgrind.c
  64.      C {COPTIONS} {DEFINES}  lgrind.c
  65.  
  66. regexp.c.o        ƒ    regexp.c
  67.      C {COPTIONS} {DEFINES}  regexp.c
  68.  
  69. vgrindefs.c.o    ƒ    vgrindefs.c
  70.      C {COPTIONS} {DEFINES}  vgrindefs.c
  71.  
  72. lgrind            ƒƒ    lgrind.make
  73.     SetVersion lgrind -version "{VERSION}" -t vers -i 1 -d ∂
  74.             -verstring "^, © Fred Walsteijn 1993  (walsteyn@fys.ruu.nl)"
  75.     SetVersion lgrind -version "{MPWversion}" -t vers -i 2 ∂
  76.             -verstring "MPW {MPWversion} / GUSI {GUSIversion}" ∂
  77.             ∑∑ Dev:Null || Set Status 0
  78.     # lgrind is built in the current MPW Shell using GUSI of specified version
  79.     # (works only if MPWversion has been exported)
  80.